import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)


const routes = [{
    path: '/',
    name: 'index',
    component: () => import('../components/map.vue')
},{
    path: '/upload',
    name: 'upload',
    component: () => import('../components/upload.vue')
},{
    path: '/point',
    name: 'point',
    component: () => import('../components/point.vue')
}
]
const router = new VueRouter({
    mode: "history",
    routes
})

export default router